from django.contrib import admin

from .models import *
# Register your models here

class UserManager(admin.ModelAdmin):
    list_display=["id","name","avata","access"]
    list_play_links=["access"]  #点击谁可以跳转到修改页
    list_filter=["name"]  #过滤器

admin.site.register(Users,UserManager)

admin.site.register(FaceImage)

class CommunityInfoManager(admin.ModelAdmin):
    list_display=["id","content"]
    list_play_links=["content"]  #点击谁可以跳转到修改页
    list_filter=["content"]  #过滤器

admin.site.register(CommunityInfo,CommunityInfoManager)

